{extend name="base" /}
{block name="title"}表格{/block}
{block name="main"}
<link rel="stylesheet" href="/static/index/products/style.css">
<div class="swarp">
    <table class="am-table am-table-bordered am-table-compact am-table-centered">
        <thead>
        <tr>
            <th colspan="2" rowspan="2" class="am-text-middle">产品</th>
            <th colspan="5">邮件</th>
        </tr>
        <tr>
            <th>产品质量</th>
            <th>操作说明</th>
            <th>产品咨询</th>
            <th>其它</th>
            <th>合计</th>
        </tr>
        </thead>
        <tbody>
        <?php foreach($data as $key => $val){ ?>
            <?php foreach($val as $k => $v){ ?>
            <tr>
                <?php if('本周' == $k){ ?>
                    <td rowspan="3" class="am-text-middle">{$key}</td>
                <?php } ?>

                <td>{$k}</td>
                <td>{$v.type_1}</td>
                <td>{$v.type_2}</td>
                <td>{$v.type_3}</td>
                <td>{$v.type_0}</td>
                <td>{$v.cnt}</td>
            </tr>
            <?php } ?>
        <?php } ?>
        <!--tr>
            <td>上周</td>
            <td>1</td>
            <td>1</td>
            <td>0</td>
            <td>1</td>
            <td>3</td>
        </tr>
        <tr>
            <td>环比</td>
            <td>1</td>
            <td>1</td>
            <td>1</td>
            <td>1</td>
            <td>1</td>
        </tr-->
        </tbody>
    </table>
</div>
{/block}